﻿using System.Configuration;
using System.Web;
using Mvc3App.Models;

namespace MvcApp3.Utils
{
    public static class Params
    {
        public static string UserName
        {
            get
            {
                return ConfigurationManager.AppSettings["UserName"];
            }
        }

        public static string Password
        {
            get
            {
                return ConfigurationManager.AppSettings["Password"];
            }
        }

        public static LogOnModel CurrentUser
        {
            get { return (LogOnModel) HttpContext.Current.Session["CurrentUser"]; }
            set { HttpContext.Current.Session["CurrentUser"] = value; }
        }
    }    
}